package cn.lhn.ridersclub.service;

import cn.lhn.ridersclub.dto.CommentDto;
import cn.lhn.ridersclub.dto.HistoryDto;
import cn.lhn.ridersclub.dto.PaperCardDto;
import cn.lhn.ridersclub.dto.PaperInfoDto;
import cn.lhn.ridersclub.entity.Paper;

import java.util.List;

public interface PaperService {

    void addPaper(String title, String connect, Long clubId, Long accountId);

    void deletePaper(Long paperId, Long accountId);

    PaperInfoDto getPaperById(Long paperId);

    List<PaperCardDto> getByKeyword(String keyword, Long startId);

    List<PaperCardDto> getPapers(Long accountId, Long startId);

    List<PaperCardDto> getPapers();

    List<PaperCardDto> getPapersByClubId(Long clubId, Long startId);

    Long getPaperCount(Long accountId);

    PaperCardDto getLastPaper(Long accountId);

    CommentDto getLastCommentForPaper(Long accountId, Long paperId);

    void addHistory(Long paperId, Long accountId);

    List<HistoryDto> listHistory(Long accountId, Long startId);
}
